package com.gds.wiki.cloud.admin.client.sys.api;

import com.gds.wiki.cloud.admin.client.sys.hystrix.AdminUserApiFallbackFactory;
import com.gds.wiki.cloud.admin.client.sys.model.AdminUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "gds-user-provider",path = AdminUserApi.mapping,fallbackFactory = AdminUserApiFallbackFactory.class)
public interface AdminUserApi {
    static String mapping="/api/user";
    @PostMapping
    AdminUser getBySelf(@RequestBody AdminUser user);

//    @PostMapping
//    String TestAAA();
//
//    @PostMapping
//    ResponseDto<User> insert(@RequestBody User user);
}
